package com.gr.staffpm.pages.dashboard;

import org.apache.wicket.markup.html.basic.MultiLineLabel;
import org.wicketstuff.annotation.mount.MountPath;
import org.wicketstuff.annotation.strategy.MountHybrid;

import com.gr.staffpm.StaffPMWebPage;

@MountHybrid
@MountPath(path = "secure/Dashboard")
public class Dashboard extends StaffPMWebPage {

    private final GadgetContainer gadgetContainer = new GadgetContainer("gadgetContainer");

    public Dashboard() {
        super();
        super.onBeforeRender();

        //gadgetContainer.addGadget("Test 1", new MultiLineLabel("gadgetContent", new ), 250, GadgetContainer.ALIGNMENT.LEFT);
        gadgetContainer.addGadget("Test 2", new MultiLineLabel("gadgetContent", "content"), 250, GadgetContainer.ALIGNMENT.LEFT);
        gadgetContainer.addGadget("Test 3", new MultiLineLabel("gadgetContent", "content"), 250, GadgetContainer.ALIGNMENT.CENTER);
        gadgetContainer.addGadget("Test 4", new MultiLineLabel("gadgetContent", "content\n\n\n\n\n\n\n\n\ntesttetsts tets\ntest"), 250, GadgetContainer.ALIGNMENT.RIGHT);
        gadgetContainer.addGadget("Test 5", new MultiLineLabel("gadgetContent", "content"), 250, GadgetContainer.ALIGNMENT.RIGHT);

        add(gadgetContainer);
    }

    @Override
    public String getTitle() {
        return "Dashboard - StaffPM";
    }
}
